import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqRobIslandFightPetHelper } from "./SeqRobIslandFightPetHelper";
type int = number;
//class SRobIslandFightPetList
    
    export  class SRobIslandFightPetList extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SRobIslandFightPetList();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            SeqRobIslandFightPetHelper.write(arg1, this.attackPets);
            SeqRobIslandFightPetHelper.write(arg1, this.defensePets);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.attackPets = SeqRobIslandFightPetHelper.read(arg1);
            this.defensePets = SeqRobIslandFightPetHelper.read(arg1);
            return;
        }

        public /* const */_type: int=968;

        public /* var */attackPets: Array<any>;

        public /* var */defensePets: Array<any>;

        public static /* var */_regist: SRobIslandFightPetList;
    }

            SRobIslandFightPetList._regist = new SRobIslandFightPetList(true);
        